import axios from '@/libs/api.request'

export class DeclareUnitApi {
  // 根据条件获取个税申报单位
  static getList (params) {
    return axios.request({
      url: '/DeclareUnit/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据单位ID查询所有个税申报单位信息
  static getUnitList (params) {
    return axios.request({
      url: '/DeclareUnit/GetUnitList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据ID获取个税申报单位
  static getModel (params) {
    return axios.request({
      url: '/DeclareUnit/GetModel',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 保存个税申报单位
  static save (params) {
    return axios.request({
      url: '/DeclareUnit/Save',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 启用/禁用个税申报单位
  static enabledList (params) {
    return axios.request({
      url: '/DeclareUnit/EnabledList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
